<%--
  Created by IntelliJ IDEA.
  User: Master
  Date: 17.02.2011
  Time: 15:38:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.transcargo.users.Contact" %>
<%@ page import="com.transcargo.users.User" %>
<%@include file="header.jsf"%>
<%@include file="session.jsf"%>
<%
    if (User_Id <= 0) {
        response.sendRedirect("auth.jsp");
        return;
    }
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  	<head><title>TransCargo</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
function gouser()
{
    window.location='user.jsp';
}
</script>
	<script type="text/javascript" src="forms.js"></script>
	<link type="text/css" href="postcargo.css" rel="stylesheet"/>
  </head>
  <body>
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr><td>
			<%@include file="page_header.jsf"%>
        </td></tr>
        <tr><td align="center">
            Добавление контакта для <%=user.getName()%><br><br>
			<div id="ErrorPlaceHolder" class="errorString"></div><br>
            <form action="AddContactAction" method="POST" target="ifPost" enctype="multipart/form-data">
            <table border="0" cellpadding="0" cellspacing="0">

                <tr class="tdFormSearch"><td><b>Имя:</b></td><td align="left"><input name="name" size="30"></td></tr>
                <tr class="tdFormSearch"><td><b>Телефон (мобильный):</b></td><td align="left"><input name="phone1" size="30"></td></tr>
                <tr class="tdFormSearch"><td>Телефон (городской):</td><td align="left"><input name="phone2" size="30"></td></tr>
                <tr class="tdFormSearch"><td>Телефон (дополнительный):</td><td align="left"><input name="phone3" size="30"></td></tr>
                <tr class="tdFormSearch"><td>Email:</td><td align="left"><input name="email" size="30"></td></tr>
                <tr class="tdFormSearch"><td>ICQ:</td><td align="left"><input name="icq" size="30"></td></tr>
                <tr class="tdFormSearch"><td>Skype:</td><td align="left"><input name="skype" size="30"></td></tr>
                <tr class="tdFormSearch"><td>Доп. инфо:</td><td align="left"><textarea name="info" cols="23" rows="5"></textarea></td></tr>
                <tr class="tdFormSearch"><td>Фото/Аватар:</td><td align="left"><input name="photo" type="file" size="18"></td></tr>

                <tr><td class="tdFormSearch"><input type="submit" value="Продолжить"></td><td align="left"><input type="submit" value="Отмена" onclick="gouser();return false;"></td></tr>
            </table>
            </form>
        </td></tr>
        </table>
	<iframe name="ifPost" id="ifPost" width="0" height="0" style="visibility: hidden;width: 0;height: 0;" onload="handlePost(this);" onload="handlePost(this);"></iframe>

  </body>
</html>
